import axios from './axios'
const user = (data) => {
    return axios.request({
        url: 'mall/ums-member-receive-address/edit',
        method: 'post',
        data
    })
}
const add = (data) => {
    return axios.request({
        url: 'mall/ums-member-receive-address/add',
        method: 'post',
        data
    })
}
const users = (data) => {
    return axios.request({
        url: 'mall/ums-member-receive-address/page',
        method: 'post',
        data
    })
}
const edit = (data) => {
    return axios.request({
        url: '/mall/ums-member-receive-address/edit',
        method: 'post',
        data
    })
}
// const del=(params)=>{
//     return axios.request({
//         url:`/mall/ums-member-receive-address/del/${id}`,
//         params
//     })
// }

const del = (id) => {
    return instance.request({
       url: `/mall/ums-member-receive-address/del/${id}`,
       method: 'get',
    })
 }
const page = (data) => {
    return instance.request({
        url: '/mall/ums-member-receive-address/page',
        method: 'post',
        data
    })
}
// const users = (data) => {
//     return axios.request({
//         url: 'mall/ums-member-receive-address/page',
//         method: 'post',
//         data
//     })
// }
export {
    user, add, users, edit,del,page
}